package com.cloudfun.campusshare.common.model.vo;


import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author linyangping
 * @Title: 设备查询vo
 * @date 2019/11/6 下午2:27
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "设备查询信息")
public class DevicePropertyQueryVO {

    @ApiModelProperty(value = "设备识别码")
    @NotEmpty(message = "设备识别码不能为空")
    @Length(max = 40, message = "设备识别码过长，限制40个字")
    @JsonProperty("deviceId")
    private String imei;

    @ApiModelProperty(value = "设备类型")
    @NotEmpty(message = "设备类型不能为空")
    @Length(max = 40, message = "设备类型过长，限制40个字")
    private String deviceType;

    @ApiModelProperty(value = "查询属性")
    @NotEmpty(message = "查询属性不能为空")
    @Length(max = 40, message = "属性名称过长，限制40个字")
    private String property;
}
